//
//  SSDetailCommentCell.m
//  starspaceVR
//
//  Created by 曹端芹 on 17/9/19.
//  Copyright © 2017年 starspace. All rights reserved.
//

#import "SSDetailCommentCell.h"
#define pictureURL @"http://www.vrspaces.cn"

@interface SSDetailCommentCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImgView;
@property (weak, nonatomic) IBOutlet UILabel *nameL;
@property (weak, nonatomic) IBOutlet UILabel *addressL;
@property (weak, nonatomic) IBOutlet UILabel *contentL;

@property (weak, nonatomic) IBOutlet UILabel *timeL;
@end

@implementation SSDetailCommentCell


- (void)setModel:(SSCommentModel *)model {
    _model = model;
    NSString *imageURLString = [NSString stringWithFormat:@"%@%@",pictureURL,model.photo];
    [self.iconImgView sd_setImageWithURL:[NSURL URLWithString:imageURLString] placeholderImage:[UIImage imageNamed:placeholderImageName]];
    self.nameL.text = model.user;
    self.contentL.text = model.content;
    self.timeL.text = model.commentDate;

}
-(void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
